<?
require_once("ericdingle/php/PostDate.php");

class CommentEntity {
	private $commentID;
	private $postID;
	private $name;
	private $date;
	private $content;
	
	public function __construct($commentID = null, $postID = null, $name = null, PostDate $date = null, $content = null) {
		$this->setCommentID($commentID);
		$this->setPostID($postID);
		$this->setName($name);
		$this->setDate($date ? $date : new PostDate());
		$this->setContent($content);
	}
	
	public function getCommentID() { return $this->commentID; }
	public function getPostID() { return $this->postID; }
	public function getName() { return $this->name; }
	public function getDate() { return $this->date; }
	public function getContent() { return $this->content; }
	
	public function setCommentID($commentID) { $this->commentID = $commentID; }
	public function setPostID($postID) { $this->postID = $postID; }
	public function setName($name) { $this->name = $name; }
	public function setDate($date) { $this->date = $date; }
	public function setContent($content) { $this->content = $content; }
}
?>
